<link href="/public/front/page/css/jquery.pagination.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/public/front/page/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/front/page/js/jquery.pagination.min.js"></script>
<div class="aui-tab" data-ydui-tab>
    <ul class="tab-nav b-line">
        <li class="tab-nav-item tab-active">
            <a href="javascript:;">
                <span>{{.data.Cate.Name}}</span>
            </a>
        </li>
    </ul>
    <div class="tab-panel tab-panel-clear-line">
        <div class="tab-panel-item tab-active">
            <div class="aui-class-content">
                {{range $k, $v := .data.list}}
                    <a href="/detail/{{$v.ID}}" class="aui-class-link">{{$v.Title | FormatLen}}</a>
                {{end}}
            </div>
            <div id="pagination" class="page fl"></div>

        </div>
    </div>
</div>
<script type="text/javascript">
    $("#pagination").pagination({
        currentPage: {{.data.current}},
        totalPage: {{.data.pageNum}},
        isShow: true,
        count: 3,
        homePageText: "首页",
        endPageText: "尾页",
        prevPageText: "上一页",
        nextPageText: "下一页",
        callback: function(current) {
            window.location = "/cate/{{.data.cid}}?page="+current
        }
    });
</script>